/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package lucava.importer.uspeed.matcher;

import java.util.regex.MatchResult;

/**
 *
 * @author glenn
 */
public class AttributeMatcher extends MatcherDecorator {

    public AttributeMatcher(MatchResult matcher) {
        super(matcher);
    }

    public String getClassName() {
        return this.matcher.group(1);
    }

    public String getModifier() {
        return this.matcher.group(2);
    }

    public String getVisibility() {
        return this.matcher.group(5);
    }

    public String getDescription() {
        return this.matcher.group(7);
    }

    public String getAttributeName() {
        return this.matcher.group(8);
    }

    public String getAttributeType() {
        return this.matcher.group(10);
    }

    @Override
    public String toString() {
        return "ATTRIBUTE => class : " + getClassName() + " | "
                + "modifier : " + getModifier() + " | "
                + "visibility : " + getVisibility() + " | "
                + "desc : " + getDescription() + " | "
                + "name : " + getAttributeName() + " | "
                + "type : " + getAttributeType();
    }
}
